<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>
<%@	page import="java.util.ArrayList"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

	
<title>회원권한관리</title>
</head>
<body>

<% ArrayList<Customer> noPermissionList = CustomerDAOImpl.getInstance().noPermissionCustList();
%>

	<h4>권한부여가 되지 않은 회원목록</h4>
	<table border='1'>
		<tr>
			<td width="30">No.</td>
			<td width="100">회원ID</td>
			<td width="100">회원이름</td>
			<td width="80">현재등급</td>
			<td width="100">변경등급</td>
			<td width="80"></td>
		</tr>
	</table>	
			<%for(int i=0;i<noPermissionList.size();i++){ %>
			<form action="update_custPermission.cust">
			<input type="hidden" name="nextType" value="noPermissionCust">
			<table>
			<tr>
			<td width="30"><%=i+1%></td>
			<td width="100"><input type="hidden" name ="custId" value=<%=noPermissionList.get(i).getCustId() %>>
			<%=noPermissionList.get(i).getCustId() %></td>
			<td width="100"><%=noPermissionList.get(i).getCustName() %></td>
			<td width="80"><%=noPermissionList.get(i).getCustLevel() %></td>
			
			<td width="100">
			<select name="custLevel">
					<option value <%=noPermissionList.get(i).getCustLevel() %>>선택하세요</option>
					<option value="1">1.관리자</option>
					<option value="2">2.강사</option>
					<option value="3">3.학생</option>
					<option value="4">4.권한없음</option> </select></td>	
			<td><input type="submit" value="변경"></td>
			
			</tr>
			</table>
			</form>
			<%} %>
	


</body>
</html>